# 字典 {key:value,key:value,key:value}
a = {
    'jack' :4098,
    'sjoerd':1111
}
# print(a['sjoerd'])
# get() 获取  如果没有相应的key返回None  none没有 null 空
print(a.get('jack1','没有这个值'))
# 添加和修改的方法是一样的
a['yun']='yqy'
print(a)
a['yun']='yqy1'
print(a)
a = {'one':1,'two':2,'three':3}
a['one']='——'
print(a)
a['four']=4
print(a)
s = dict()
print(s)
a = {'one':1,'two':2,'three':3}
b = dict(one=1,two=2,three=3)
c = dict([('two,2'),('one',1),('three',3)])
d = dict({'three':3,'one':1,'two':2})

print(a == b == c == d)
print(b)
type(b)
